<?php

	/**
	 * File : db.php
	 * Description : Fichier d'inclusion des autres fichiers de gestion de base de données
	 * Date : 07.08.2012 13:03:25
	 * 
	 * This file is part of Phenix.  Phenix is free software: you can
	 * redistribute it and/or modify it under the terms of the GNU General Public
	 * License as published by the Free Software Foundation, version 2.
	 *
	 * This program is distributed in the hope that it will be useful, but WITHOUT
	 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
	 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
	 * details.
	 *
	 * You should have received a copy of the GNU General Public License along with
	 * this program; if not, write to the Free Software Foundation, Inc., 51
	 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
	 *
	 * Nils Schaetti <n.schaetti@gmail.com>
	**/

	/*
	 * Définit quelle type de base on utilise
	 */
	define('DB_TYPE','mongodb');
	
	/*
	 * Inclus le fichier correspondant au type de base
	 */
	switch(DB_TYPE)
	{
		case 'mysql':
			require_once('mysql/mysql.php');
			break;
		case 'mongodb':
			require_once('mongodb/mongodb.php');
			break;
		case 'cassandra':
			require_once('cassandra/cassandra.php');
			break;
	}

?>
